<?php

namespace app\logic\model\user;

use app\logic\model\LogicModel;

class UserScoreLogicModel extends LogicModel
{
    protected $name='user_score';

    public static function getScoreByUserId($id)
    {
        return self::where('user_id',$id)->sum('price');
    }

}